 {
        var o = require("./UISoundManager.js"), i = require("./UIPopupBase.js");
        cc.Class({
            extends: i,
            properties: {
                version: {
                    default: null,
                    type: cc.Label
                },
                labUserId: {
                    default: null,
                    type: cc.Label
                }
            },
            init: function () {
                this.m_selfInfo = Global.userProfile.profile, this.version.string = Global.config.VERSION,
                    this.labUserId.string = Global.userProfile.getUserId();
                var e = Global.utils.searchNode(this.node, "UIEffectToggle").getComponent("UIToggle"),
                    t = this.m_selfInfo.ALLOW_SOUND_EFFECT;
                e.InitData("", t, this.OnEffectToggle.bind(this));
                var n = Global.utils.searchNode(this.node, "UIMusicToggle").getComponent("UIToggle"),
                    o = this.m_selfInfo.ALLOW_SOUND_MUSIC;
                n.InitData("", o, this.OnMusicToggle.bind(this)), Global.userProfile.profile.CLICK_DOUBLE ? (Global.utils.searchNode(this.node, "Toggle1").getComponent(cc.Toggle).isChecked = !0,
                    Global.utils.searchNode(this.node, "Toggle2").getComponent(cc.Toggle).isChecked = !1) : (Global.utils.searchNode(this.node, "Toggle1").getComponent(cc.Toggle).isChecked = !1,
                    Global.utils.searchNode(this.node, "Toggle2").getComponent(cc.Toggle).isChecked = !0);
            },
            reportSDKLog: function () {
                var e = {
                    text: "是否上传日志？",
                    confirmText: "确定",
                    confirmSp: Global.spriteAtlas.getOKSpf(),
                    cancelText: "取消",
                    cancelSp: Global.spriteAtlas.getCancelSpf(),
                    confirmCallback: function () {
                        console.log("upload log.");
                    },
                    cancelCallback: function () {
                    }
                };
                Global.UIPopupManager.alert(e);
            },
            OnEffectToggle: function (e, t) {
                o.playEffect("select"), Global.userProfile.setProfile("ALLOW_SOUND_EFFECT", t);
            },
            OnMusicToggle: function (e, t) {
                o.playEffect("select"), Global.userProfile.setProfile("ALLOW_SOUND_MUSIC", t), t ? o.playMusic("my_hall_background_music", !0) : o.stopBGM();
            },
            OnClickRule: function () {
                o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_HelpNew", function (e) {
                    console.log("OnClickRule");
                });
            },
            OnClickComment: function () {
                o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_Feedback", function (e) {
                    console.log("OnClickComment");
                });
            },
            OnClickAbout: function () {
                o.playEffect("select"), Global.UIPopupManager.addPopup("PopupPanel/Panel_About", function (e) {
                    console.log("OnClickAbout");
                });
            },
            OnClickChoose: function () {
                o.playEffect("select");
                var e = Global.utils.searchNode(this.node, "playContainer");
                if (e) {
                    var t = e.getChildByName("Toggle1");
                    t && t.getComponent(cc.Toggle).isChecked && Global.userProfile.setProfile("CLICK_DOUBLE", !0),
                    (t = e.getChildByName("Toggle2")) && t.getComponent(cc.Toggle).isChecked && Global.userProfile.setProfile("CLICK_DOUBLE", !1);
                }
            },
            OnPanelClose: function () {
                o.playEffect("select"), this.closePanel();
            }
        })
    }